package com.easily.system.baseServer;

import com.easily.core.ConfigCenter;
import com.easily.factory.aop.MethodBody;
import com.easily.label.Aop;
import com.easily.label.AopAfter;
import com.easily.label.AopBefore;
import com.easily.system.dict.CONFIG;

@Aop({"com.easily.system.baseServer.CarrotController"})
public class VersionControllerAop {

    /**
     * 拦截 /version，返回配置文件中的版本号
     */
    @AopBefore
    public void aopTest(MethodBody methodBody){
        System.out.println("aop测试----------------");
    }

    @AopAfter
    public void aopTestAfter(MethodBody methodBody){
        System.out.println("aop测试----------------后置");
    }
}